<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover,initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no">
<script src="../../../js/reactlocal/react-with-addons.min-0.14.3.js" ></script>
<script src="../../../js/reactlocal/react-dom.min-0.14.3.js"  ></script>
<script src="../../../js/reactlocal/ReactRouter.min-2.0.0.js"  ></script>
<script src="../../../js/reactlocal/fastclick.min-1.0.6.js"  ></script>
<script src="../../../js/reactlocal/lie.polyfill.min-3.0.2.js"  ></script>
<script src="../../../js/reactlocal/salt-router.min-0.0.2.js" ></script>

<!-- 钉钉 -->
<script src="../../../js/reactlocal/dingtalk-ali-1.9.0.js" ></script>

<!-- 微信 -->
<script src="../../../js/reactlocal/jweixin-1.2.0.js" ></script>
<script src="../../../js/jquery-3.1.0.min.js" ></script>
<script src="../../../fmui/lib/calendar.min.js" ></script>

<!-- 每次访问必须要下载的-->
<script type="text/javascript">
  document.write('<script src="../../../js/version.js?_='+Math.random()+'"><\/script>');
</script>

<!-- 项目样式资源加载 -->
<script type="text/javascript">
	includeIndexCssFile(['./app.css?_v='+flexVersion,
	'../../../fmui/css/calendar.css?_v='+flexVersion
	]);
</script>

<!-- 项目不需要变化的样式资源加载 --> 
<link rel="stylesheet"  href="../../../fmui/css/iconfont-office.min.css" defer>
<link rel="stylesheet"  href="../../../fmui/css/common.min.css" defer>
</head>
<body>
<input type="hidden" id="context" value=""/>
<input type="hidden" id="officeContext" value="">
<input id="userHiddenId" type="hidden" value="1"/>
<input id="orgHiddenId" type="hidden" value=""/>
<input id="token" type="hidden" value=""/>
<input type="hidden" id="hasBottomTab" value=""/>
<input type="hidden" id="sendTabIndex" value=""/>
<input type="hidden" id="baseContext" value=""/>
<div id="App"></div>

<!-- 项目脚本资源加载 -->
<script type="text/javascript">
	includeIndexJsFile(['../../../js/watermark.mobile.js?_v='+flexVersion,
	'../../../js/emp.js?_v='+flexVersion,
	'../../../fmui/lib/base.js?_v='+flexVersion,
	'./js/applyBoardRoom.js?_v='+flexVersion,
	'../../../js/userinfoutils.js?_v='+flexVersion,
	]);
	var appJsUrl={url:'../dist/app.js?_v='+flexVersion,cache:true};
</script>
<script>

    function showWaterMarker(id,sysWatermark){ 
        try{
            if($('#'+id).length>0){
                $('#'+id).ezWaterMarker({text:sysWatermark,posY_space:70,rows:16});
            }
        }catch(e){}
    }
	
    function searchBarLimit(len){
        $(".t-search-bar-input").attr('maxlength',len);
    }
	var emp=window.emp;
	window.onload = initFun;
	
    function initFun(){
		emp=window.emp;
        loginUserInfo = getLoginUserInfo();
		if(loginUserInfo){
			thirdUserCheck();
			realCorpId = loginUserInfo.baseCorpId;
			$("#userHiddenId").val(loginUserInfo.thirdUserId);
			$("#userHiddenDDId").val(loginUserInfo.userId);
			$("#userHiddenName").val(loginUserInfo.userName);
			$("#orgHiddenId").val(loginUserInfo.orgId);
			$("#orgHiddenName").val(loginUserInfo.orgName);
			$("#token").val(loginUserInfo.token);
			$("#baseContext").val(loginUserInfo.baseContext);
			$("#officeContext").val(loginUserInfo.context);
			$.getScript(appJsUrl,function(response,status){
				clearLoading();
					if(status!='success'){
						alert('网络异常，js文件加载失败');
					}
				}
			);
			jsready(function(result1){});
		
		}else{
			setTimeout(initFun(), 200);
		}
    }
</script>
</body>
</html>
